<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格标签</title>
</head>
<body>
<table border="1">
    <!--第一行-->
    <tr>
        <!--colspan属性:跨列合并-->
        <td align="center" colspan="2">1-1</td>
<!--        <td>1-2</td>-->
        <!--rowspan属性:跨行合并-->
        <td rowspan="2">1-3</td>
        <td rowspan="3">1-4</td>
    </tr>
    <!--第二行-->
    <tr>
        <td>2-1</td>
        <td>2-2</td>
<!--        <td>2-3</td>-->
    </tr>
    <!--第三行-->
    <tr>
        <td colspan="3">3-1</td>
<!--        <td>3-2</td>-->
    </tr>
</table>

<!--实现购物车表格-->
<table border="1">
    <caption>购物车</caption>
    <hr>
    <tr align="center">
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
    </tr>
    <tr align="center">
        <td>1</td>
        <td>苹果手机</td>
        <td>10000</td>
    </tr>
    <tr align="center">
        <td>2</td>
        <td>华为手机</td>
        <td>10000</td>
    </tr>
    <tr align="center">
        <td>3</td>
        <td>小米手机</td>
        <td>5000</td>
    </tr>
    <tr align="center">
        <td colspan="2" style="color: yellow" bgcolor="#a52a2a">总价</td>
        <td>25000</td>
    </tr>
</table>
</body>
</html>